<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Cookie[] cookies = request.getCookies();
    //判断客户端是否存放的Cookie的对象
    if(cookies != null && cookies.length >0){
        for (Cookie cookie : cookies) {
            if(cookie.getName().equals("pwdCookie")){
                cookie.setMaxAge(0);
                cookie.setPath("/");
                response.addCookie(cookie);
                //response.sendRedirect(request.getContextPath() +"/html/login.jsp");
            }
        }
    }
    session.invalidate();
    //session
   // session.removeAttribute("loginUser");
%>
<script>
        window.location.href="<%=request.getContextPath()%>/html/login.jsp";
</script>